import Vue from 'vue';
import Vuex from 'vuex';
Vue.use (Vuex);
const store = () => {
  return new Vuex.Store ({
    state: {
      token: '',
    },
    getters: {
      token: state => {
        return state.token
      }
    },
    mutations: {
      TOKEN (state, data) {
        state.token = data;
        // state.count++
      },
    },
    actions: {
      increment (context) {
        // context.commit('increment')
      },
    },
  });
};
export default store